

#include "zelObject.h"
using namespace z3d;

//----------------------------------------------------------------------------
zelObject::zelObject ()
{
}
//----------------------------------------------------------------------------
zelObject::~zelObject ()
{
}
//----------------------------------------------------------------------------

//----------------------------------------------------------------------------
// Run-time type information.
//----------------------------------------------------------------------------
const Rtti zelObject::TYPE("z3d.zelObject", 0);
//----------------------------------------------------------------------------
const Rtti& zelObject::GetRttiType () const
{
    return TYPE;
}
//----------------------------------------------------------------------------
bool zelObject::IsExactly (const Rtti& type) const
{
    return GetRttiType().IsExactly(type);
}
//----------------------------------------------------------------------------
bool zelObject::IsDerived (const Rtti& type) const
{
    return GetRttiType().IsDerived(type);
}
//----------------------------------------------------------------------------
bool zelObject::IsExactlyTypeOf (const zelObject* object) const
{
    return object && GetRttiType().IsExactly(object->GetRttiType());
}
//----------------------------------------------------------------------------
bool zelObject::IsDerivedTypeOf (const zelObject* object) const
{
    return object && GetRttiType().IsDerived(object->GetRttiType());
}

